<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>

<div id="p" class="easyui-panel" title="实验室课表查询"  data-options="collapsible:true"> 
	<t:datagrid height="200px" name="dictGroupList" checkbox="false" fitColumns="false" title="" actionUrl="stuTimeTableController.do?weekTimeTableDatagrid" idField="id" fit="false" queryMode="group">
	   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="日期"  field="courseDate" formatter="yyyy-MM-dd"  queryMode="single"  width="100"></t:dgCol>
	   <t:dgCol title="学期"  field="semesterInfo.semesterName" queryMode="single"  width="100"></t:dgCol>
	   <t:dgCol title="星期"  field="weekDayName" hidden="false"  queryMode="single"  width="100"></t:dgCol>
	   <t:dgCol title="上课节次"  field="courseOrder"   queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="专业班级"  field="grade.className"  queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="实验课程"  field="lessonInfo.lessonName"   queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="实验项目"  field="teachItem.itemName"   queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="任课教师"  field="teacher.realName"   queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="实验室"  field="lab.labName"   queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
	   <t:dgFunOpt funname="previewFiles" title="查看"></t:dgFunOpt>
   </t:datagrid>
 </div>  
 <div style="height: 50px;"></div>
 
 <div id="pp" class="easyui-panel" data-options="collapsible:true"> 
	<t:datagrid height="200px" name="alist" checkbox="false" fitColumns="false" title="" actionUrl="stuTimeTableController.do?datagrid" idField="id" fit="false" queryMode="group">
  	   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="周次"  field="weekNumber" queryMode="group" query="true"   width="200" replace="${weekList }"></t:dgCol>
	   <t:dgCol title="日期"  field="courseDate" formatter="yyyy-MM-dd"  queryMode="single"  width="100"> </t:dgCol>
	   <t:dgCol title="学期"  field="semesterInfo.semesterName" queryMode="single" query="true"   width="100" replace="${semesterName }"></t:dgCol>
	   <t:dgCol title="星期"  field="weekDayName" hidden="false" query="false"  queryMode="single"  width="100"></t:dgCol>
	   <t:dgCol title="上课节次"  field="courseOrder" query="false"  queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="专业班级"  field="grade.className"  queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="实验课程"  field="lessonInfo.lessonName" query="true"   queryMode="single" replace="${lessonNames }"  width="120"></t:dgCol>
	   <t:dgCol title="实验项目"  field="teachItem.itemName"   queryMode="single" query="true"  width="120"></t:dgCol>
	   <t:dgCol title="任课教师"  field="teacher.realName"   queryMode="single"  width="120"></t:dgCol>
	   <t:dgCol title="实验室"  field="lab.labName"   queryMode="single" query="true" replace="${labNames }"  width="120" ></t:dgCol>
	   <t:dgCol title="操作" field="opt" width="100"></t:dgCol>
	   <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   </t:datagrid>
 </div>           
 <script>
	//导出
	function ExportXls() {
		JeecgExcelExport("stuTimeTableController.do?exportXls","alist");
	}
	
	//预习资料
	function previewFiles(){
		var url = 'stuTimeTableController.do?previewList';
		 $.dialog({
		  	id:'preview',
			content: 'url:' + url,
			lock : true,
			zIndex: 62, 
			width:500,
			height:280,
			title:'预习资料', 
			opacity : 0.3,
			cache:false,
		    ok: false,
		    cancelVal: '关闭',
		    cancel: true /*为true等价于function(){}*/,
		});	
	}
 </script>       